/* 主内容区调整 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    height: calc(100vh - 60px);
    overflow: auto;
    margin-top: 60px;
}


.nav-link {
    color: #495057;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.nav-link:hover {
    color: var(--primary-color);
}


/* 筛选栏样式 */
.filter-bar {
    padding: 15px;
    box-sizing: border-box;
    border-radius: 8px;
    width: 200px;
}

.search-input {
    position: relative;
    width: 250px;
}

.search-input i {
    position: absolute;
    z-index: 11;
    left: 12px;
    top: 12px;
    color: var(--dark-gray);
}

.search-input input {
    padding-left: 35px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* 机器人卡片样式 */
.robot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.robot-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.robot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.robot-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
    padding-right: 40px;
}

.robot-type {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.robot-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.status-enabled {
    color: #28a745;
    font-weight: 500;
}

/* 未启用状态（置灰） */
.status-disabled {
    color: #6c757d !important;
    opacity: 0.7;
}

.robot-created {
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.robot-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}


.btn-sm {
    padding: 5px 12px;
    font-size: 0.85rem;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover,
.btn.show {
    border-color: #fff !important;
}

/* 添加机器人卡片样式 */
.robot-card.add-robot {
    border: 1px solid #dee2e6; /* 普通灰色边框 */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.robot-card.add-robot:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.robot-card.add-robot .add-icon {
    font-size: 2.5rem;
    color: #6c757d; /* 灰色图标 */
    margin-bottom: 1rem;
}

.robot-card.add-robot .add-text {
    font-size: 1.2rem;
    color: #495057;
    font-weight: 500;
}

/* 添加卡片悬停效果 */
.robot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 详情页响应式设计 */
@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
}


/* 添加机器人模态框样式 */
.robot-modal .form-control {
    box-sizing: border-box;
}

/* 锁定状态样式 */
.robot-card.locked {
    position: relative;
    opacity: 0.8;
    background-color: #f8f9fa;
}

.lock-icon {
    font-size: 1.2rem;
    color: #6c757d;
}

.lock-icon.locked i {
    color: #dc3545;
}

.lock-icon i {
    transition: all 0.3s ease;
}

/* 禁用按钮样式 */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}



